docs: advertise the llms.txt documentation index in AGENTS.md - #2
Merged
Conversation
Point agents at https://api-platform.com/docs/llms.txt (and llms-full.txt), the machine-readable index, alongside the human-readable docs.
soyuka
added a commit
to soyuka/api-platform
that referenced
this pull request
Jun 13, 2026
Keep the template in sync with api-platform/skillset#2 — point agents at https://api-platform.com/docs/llms.txt and llms-full.txt.
soyuka
added a commit
to api-platform/api-platform
that referenced
this pull request
Jun 14, 2026
…2993) * feat(installer): scaffold AGENTS.md and CLAUDE.md into new projects New projects ship agent-instruction files by default so AI coding agents read current API Platform docs instead of stale training data. AGENTS.md is the cross-agent convention (Cursor, GitHub Copilot, OpenAI Codex, Gemini); CLAUDE.md is a thin @AGENTS.md import. Opt out with --no-with-agents. Adds an AgentsScaffold writer (templates/AGENTS.md, templates/CLAUDE.md), a withAgents option on ScaffoldOptions (default true), and wires both the Symfony and Laravel scaffolds. Content matches the api-platform/skillset AGENTS.md. Mirrors create-next-app's agent-file generation. * docs(installer): advertise llms.txt index in the scaffolded AGENTS.md Keep the template in sync with api-platform/skillset#2 — point agents at https://api-platform.com/docs/llms.txt and llms-full.txt. * refactor(installer): fetch AGENTS.md from skillset instead of bundling it Make api-platform/skillset the single source of truth: AgentsScaffold now downloads AGENTS.md from the skillset main branch at scaffold time rather than shipping a bundled copy that drifts (the template and its later llms.txt update both had to be hand-synced). The fetch is injectable so tests stay offline, and a failed download warns and skips rather than aborting the scaffold. CLAUDE.md (@AGENTS.md) is written inline; the bundled templates are removed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #1. Points agents at the machine-readable llms.txt index, not just the human docs:
Kept lean (two lines in the intro). The index itself is shipped by api-platform/docs-website#29 + api-platform/docs#2302; the URL goes live on the next docs deploy.